import { SWaitingPlayer } from "../../../../Message/Public/SWaitingPlayer";
import { SMaxProcess } from "../../../../Message/Public/SMaxProcess";
import { Language } from "../../../../extend/language/Language";
type int = number;
//class GroupUtil
    
    export  class GroupUtil
    {
        

        public static getMiniPlayers(arg1: Array<any>): Array<any>
        {
            var loc2=null;
            var loc1=[];
            var loc3=0;
            var loc4=arg1;
            for(loc2 of loc4) 
            {
                loc1.push(loc2.miniPlayer);
            }
            return loc1;
        }

        public static getProcessStr(arg1: SWaitingPlayer, arg2: int): string
        {
            if (!arg1) 
            {
                return "";
            }
            var loc1=arg1.maxProcessMap[arg2] as SMaxProcess;
            if (loc1) 
            {
                if (loc1.difficulty == 1) 
                {
                    return Language.getStringByParam(60464, loc1.process);
                }
                if (loc1.difficulty == 2) 
                {
                    return Language.getStringByParam(60465, loc1.process);
                }
            }
            return "";
        }
    }
